package com.Test1;

import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/4/8 14:43
 * @description
 */
public class Client {
    public static void main(String[] args) {
        try {
            Socket sk = new Socket("192.168.3.105",9000);
            byte[] buff = new byte[1024];
            InputStream is = sk.getInputStream();
            int len = is.read(buff);
            System.out.println(new String(buff,0,len));

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
